home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat2 / standard / nanosleep.z / nanosleep
Encoding:
Text File  |  2001-04-17  |  3.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. NNNNAAAANNNNOOOOSSSSLLLLEEEEEEEEPPPP((((2222))))                                                      NNNNAAAANNNNOOOOSSSSLLLLEEEEEEEEPPPP((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      nanosleep - high resolution sleep
  10.  
  11. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttiiiimmmmeeee....hhhh>>>>
  13.  
  14.      iiiinnnntttt nnnnaaaannnnoooosssslllleeeeeeeepppp((((ccccoooonnnnsssstttt ssssttttrrrruuuucccctttt ttttiiiimmmmeeeessssppppeeeecccc ****rrrrqqqqttttpppp,,,, ssssttttrrrruuuucccctttt ttttiiiimmmmeeeessssppppeeeecccc ****rrrrmmmmttttpppp))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The _n_a_n_o_s_l_e_e_p system call causes the current thread to suspend until
  18.      either the time interval specified by the rrrrqqqqttttpppp argument has elapsed or a
  19.      signal is delivered to the calling thread and its action is to invoke a
  20.      signal-handling function or terminate the process.
  21.  
  22.      The suspension time will be rounded to a multiple of the underlying
  23.      system-provided sleep resolution.  For real time processes, or for
  24.      processes that have requested a timeout of less than the base clock tick
  25.      of 10 milliseconds, this resolution is defined by the variable ffffaaaasssstttthhhhzzzz
  26.      which may be examined or modified using _s_y_s_t_u_n_e(_1_M). Otherwise, the
  27.      resolution is determined by the length of a clock tick.  The length of a
  28.      clock tick is defined by CCCCLLLLKKKK____TTTTCCCCKKKK in the include file <_l_i_m_i_t_s._h>.
  29.  
  30. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  31.      sleep(3), sginap(2), alarm(2), pause(2), schedctl(2), timers(5),
  32.      realtime(5).
  33.  
  34. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  35.      If the calling thread remains suspended for the requested time interval,
  36.      _n_a_n_o_s_l_e_e_p returns 0.  If, however, the thread is interrupted prematurely
  37.      by a signal, it returns -1 and sets _e_r_r_n_o to indicate the interruption.
  38.      If the rrrrmmmmttttpppp argument is non-NULL, the ttttiiiimmmmeeeessssppppeeeecccc structure referenced by it
  39.      contains the amount of time remaining in the interval.
  40.  
  41.      If any of the following conditions occur, _n_a_n_o_s_l_e_e_p returns -1 and sets
  42.      _e_r_r_n_o to indicate the error:
  43.  
  44.      [EFAULT]       An argument address referenced invalid memory.
  45.  
  46.      [EINTR]        _n_a_n_o_s_l_e_e_p was interrupted by a signal.
  47.  
  48.      [EINVAL]       The rrrrqqqqttttpppp argument specified a nanosecond value less than
  49.                     zero or greater than
  50.                      or equal to 1000 million.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.